<?php
/*core function of each module, act's like controller*/
function useModel($page_title, $page_keywords, $page_description, $content, $page_template_id, $page_locked){
	session_start();
	if(!$_POST){
			//session_start();
			$getcontent = "calculateContent". $page_title;
			$content = $getcontent();
			return displayTemplatedCode($page_title, $page_keywords, $page_description, $content, $page_template_id, $page_locked);//return site
	}
	else{
		$getcontent = $page_title. "Content";
		ob_start();
		$getcontent($_POST);
		ob_end_flush();
	}
}
?>
